import {
	request,
	uploadFile,
	imitateGet //本地模拟
} from '../request/request.js';

//登录
export const wxLogin = (param) => {
	return request('user/wxLogin', param, 'POST')
}

//微信授权
export const wxAuthorization = (data) => {
	return request('user/wxAuthorization', data, 'GET')
}

//登出
export const wxLogout = (data) => {
	return request('user/wxLogout', data, 'POST')
}

//获取待办/已办工作
export const getProcessList = (data) => {
	return request('wfWork/getProcessList', data, 'GET')
}

//获取工作所有表单
export const getWorkFlowProcessList = (data) => {
	return request('wfWork/getWorkFlowProcessList', data, 'GET')
}

//获取流程进程表单
export const getFlowProcessForm = (data) => {
	return request('wfWork/getFlowProcessForm', data, 'GET')
}

//流程处理
export const dealWork = (data) => {
	return request('wfWork/dealWork', data, 'POST', "application/json;charset=utf-8")
}

//获取流程清单
export const getFlowList = (data) => {
	return request('wfWork/getFlowList', data, 'GET')
}

//获取流程开始节点表单
export const getFlowBeginNodeForm = (data) => {
	return request('wfWork/getFlowBeginNodeForm', data, 'GET')
}

